<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
            <h1>site:{{site}}</h1>
            <h2>url:{{url}}</h2>
            <h1>{{details()}}</h1>
    </div>
    
    <script type="text/javascript">
        var vm = new Vue({
            el:'#app',
            data:{
                site:"教程",
                url:"www.runoob.com",
                alexa:"10000"
            },
            methods:{
                details:function (){
                    return  this.site+"- 学的不仅是技术，更是梦想！";
                }
            }    

        })

    </script>
</body>
</html>